package com.xuecheng.api.content.model.api;

import com.xuecheng.api.content.model.dto.TeachplanDTO;
import com.xuecheng.api.content.model.vo.CourseBaseVO;
import com.xuecheng.api.content.model.vo.TeachplanVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@Api("教学计划API接口")
public interface TeachplanApi {
    // 查询
    @ApiOperation(value = "根据课程Id查询课程计划树形结构（树形结构为三级目录）")
    @ApiImplicitParam(name = "courseId" , value = "课程Id值",required = true,dataType = "Long", paramType = "path", example = "1")
   TeachplanDTO queryTreenodesByCourseId( Long courseBaseId);

    //增 改
    @ApiOperation(value = "根据课程Id对教学计划进行操作（增或者改）")
    @ApiImplicitParam(name = "teachplanVO" , value = "课程Id值",required = true,dataType = "TeachplanVO", paramType = "body", example = "1")
    TeachplanDTO createOrModifyTeachplan( TeachplanVO teachplanVO);


    // 删
    @ApiOperation(value = "根据课程Id对教学计划进行删除")
    @ApiImplicitParam(name = "teachPlanId" , value = "课程计划Id值",required = true,dataType = "String", paramType = "param")
    void removeTeachplan( String teachPlanId);
}
